import http from '@/config/request'

/**
 * 获取请假申请列表
 * @param {Object} params 查询参数
 * @returns {Promise}
 */
export const getApplyList = ({ employeeNo, current, size }) => {
  return http.get(`/employee/apply?employeeNo=${employeeNo}&current=${current}&size=${size}`)
}

/**
 * 创建请假申请
 * @param {Object} data 申请数据
 * @returns {Promise}
 */
export const createApply = (data) => {
  return http.post('/employee/apply/create', data)
}
